package com.leizi.igym.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 员工表
 * @TableName t_employee
 */
@TableName(value ="t_employee")
@Data
public class Employee implements Serializable {
    /**
     * 员工id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 员工id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 员工姓名
     */
    @TableField(value = "emp_name")
    private String empName;

    /**
     * 员工性别
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 员工年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 是否被删除（逻辑删除），0-未被删除，1-已被删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 员工是否被认证，0-未认证，1-已认证
     */
    @TableField(value = "isIdentify")
    private Integer isIdentify;

    /**
     * 员工头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 员工加入时间
     */
    @TableField(value = "join_time")
    private LocalDate joinTime;

    /**
     * 员工生日
     */
    @TableField(value = "birthday")
    private LocalDate birthday;

    /**
     * 员工身份证号
     */
    @TableField(value = "id_no")
    private String idNo;

    /**
     * 员工电话
     */
    @TableField(value = "phone")
    private String phone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}